<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Usuarios por Beneficio</title>
</head>
<body>
	<%
		String strnomBen = (String) request.getAttribute("Nombre");
		String codePrograma = (String) request.getAttribute("codePrograma");
		String codeSubprograma = (String) request
				.getAttribute("codeSubPrograma");
	%>

	<P></P>
	<P></P>
	<div align="center">
		<table
			style="width: 80%; border: 0; padding: 1px; border-spacing: 2px;">
			<tr>
				<td class="celdatabla">
					<DIV align="right">
						<STRONG>Beneficio</STRONG>
					</DIV>
				</td>
				<td>
					<DIV align="center">
						<input type="text" name="Ben" class="form" value="<%=strnomBen%>"
							maxlength="100" size="100" />
					</DIV>
				</td>
			</tr>
		</table>
	</div>

	<div align="center">
		<table class="tablaGenericaWidth90">
			<tr>
				<td><logic:notPresent scope="request" name="Usuarios">
						<DIV align="center"><%=request.getAttribute("msg")%></DIV>
					</logic:notPresent> <logic:present scope="request" name="Usuarios">
						<display:table name="requestScope.Usuarios" class="bordesTable"
							id="usu" cellpadding="3" cellspacing="1" style="width:100%">
							<display:column headerClass="headerTable" title="Usuario"
								class="Numero" sortable="false">
								<bean:write name="usu" property="nombreUsuario" />
							</display:column>
							<display:column headerClass="headerTable" title="Programa"
								class="Numero" sortable="false">
								<bean:write name="usu" property="nombrePrograma" />
							</display:column>
							<display:column headerClass="headerTable" title="Beneficio"
								class="Numero" sortable="false">
								<bean:write name="usu" property="nombreSubprograma" />
							</display:column>
						</display:table>
					</logic:present></td>
			</tr>
		</table>
	</div>
	<P></P>

	<form name="asignarUsuario"
		action="<%=request.getContextPath() + "/Sedes/UsuarioSubprograma.do"%>">
		<input type="hidden" name="codePrograma" value="<%=codePrograma%>">
		<input type="hidden" name="codeSubPrograma"
			value="<%=codeSubprograma%>">
		<table
			style="width: 80%; border: 0; padding: 2px; border-spacing: 1px;">
			<tr>
				<td>
					<DIV align="center">
						<a href="javascript:window.history.back()"> <img
							src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>"
							border="0" />
						</a>
					</DIV>
				</td>

				<td align="left" width="50%"><input type="submit"
					value="Asignar Usuario" /></td>

			</tr>
		</table>
	</form>
	<P></P>
</body>
</html>

